<script type="text/javascript">
	jQuery(function($){
		$('.choice').click(function(){
			var $td = $(this).parents('tr').children();
			$('#goodsclass_typeid').val($td.eq(0).html());
			$('#goodsclass_typename').html($td.eq(1).html());
			$.colorbox.close();
		});
	});
</script>
<table class="list-table list-table-s">
	<thead>
		<tr class="th-extra">
			<th colspan="4" align="left">
				【产品类型选择】类型名称：<input type="text" /> <a href="#">搜索</a>
			</th>
		</tr>
		<tr>
			<th align="center" width="20">ID</th>
			<th align="left" width="150">名称</th>
			<th align="left" width="100">别名</th>
			<th align="left" width="50">操作</th>
		</tr>
	</thead>
	<tbody>
		<?php if(isset($list) && count($list))
			foreach ($list as $item) {
		?>
		<tr>
			<td align="center" width="20"><?php echo $item['id']?></td>
			<td align="left" width="150"><?php echo $item['name']?></td>
			<td align="left" width="100"><?php echo $item['alias']?></td>
			<td align="left" width="50"><a href="#" class="choice">选择</a></td>
		</tr>
		<?php }else{?>	
		<tr>
			<td colspan="4" align="center">	
				<div class="med-tip">
					<p class="attention noclose noborder nobackground">
						<i class="icon"></i>
						对不起，暂无数据！
					</p>
				</div>
			</td>
		</tr>
		<?php }?>
	</tbody>
</table>